package com.base.test.mutual.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

/**
 * 分页工具类
 *
 * @author carl
 * @since 1.0.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "分页数据")
public class UicPageData<T> implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 编码：0表示成功，其他值表示失败
     */
    @ApiModelProperty(value = "编码：0表示成功，其他值表示失败")
    private String code ;
    /**
     * 消息内容
     */
    @ApiModelProperty(value = "消息内容")
    private String msg ;

    @ApiModelProperty(value = "总记录数")
    private long total;
    @ApiModelProperty(value = "每页数量")
    private long perPage;
    @ApiModelProperty(value = "下一页的页码")
    private  String nextCursor;
    @ApiModelProperty(value = "列表数据")
    private List<T> result;

}
